package cdu.hjx.project.sys.mapper;

import cdu.hjx.project.pojo.Dict;
import cdu.hjx.project.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int add(Role role) throws Exception;

    Role findByName(String role_name) throws Exception;

    List<Role> roles() throws Exception;

    //修改员工信息
    int updateRole(Role role) throws Exception;

    //删除字典信息
    int deleteRole(Integer id) throws Exception;

    Role findRoleById(Integer id);
}
